package com.hjm.mall.service;

import com.hjm.mall.api.vo.OrderCreateVO;
import com.hjm.mall.api.vo.ShopCartVO;
import com.hjm.mall.entity.Order;

import java.util.List;

/**
 * 订单
 */
public interface OrderService {
    int insert(Order order);
    Boolean delete(Integer id);
    Boolean update(Order order);
    Boolean updateState(Integer id,Integer state);
    Order getOrderById(Integer id);
    List<Order> getOrderListByUserId(Long userId);
    List<ShopCartVO> getShopCartVOList(Long userId);
    List<OrderCreateVO> getOrderCreateVOList(Long userId, int[] orderIds);
}
